<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();

if(empty($arResult))
	return "";

/*
echo "<pre>";
print_r($arResult);
echo "</pre>";
*/


$strReturn .='<div id="breadcrumb">
				<ul>';
$arResult[count($arResult)-1]["LINK"]="";
foreach($arResult as $NavItem):
    if($NavItem["LINK"]):
        $strReturn .='<li><a href="'.$NavItem["LINK"].'">'.$NavItem["TITLE"].'</a><span>/</span></li>';
    else:
        $strReturn .= '<li class="current"><span>'.$NavItem["TITLE"].'</span></li>';
		
    endif;
endforeach;

return $strReturn.'            </ul>
            <div class="clr"></div>
			</div>';
?>